home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 605 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. From: b91926@fsgi01.fnal.gov (David Sachs)
  2. Message-ID: <4h5c92$irn@fsgi01.fnal.gov>
  3. X-Original-Date: 29 Feb 1996 17:18:58 -0600
  4. Path: in2.uu.net!bounce-back
  5. Date: 01 Mar 96 14:57:20 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: Re: An Extra Virtual Destructor Question t
  9. Organization: FERMILAB, Batavia, IL
  10. References: <4h25rb$43e@news.xs4all.nl> <4h2abb$l69@engnews1.Eng.Sun.COM>
  11. Reply-To: sachs@fnal.fnal.gov
  12. X-Newsreader: NN version 6.5.0 #9 (NOV)
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBFAgUBMTcQW+EDnX0m9pzZAQGT0gF8DDL6RZ1hSPxQVfmerDooxjQwhKYC1J3W
  15.     p6wj6CxBTHBmXA2ILzm8QXExGottElsK
  16.     =44B7
  17.  
  18. clamage@Eng.Sun.COM (Steve Clamage) writes:
  19.  
  20. >The compiler will generate calls to the pure virtual destructor if
  21. >any derived type is destroyed (you can't create objects of type X).
  22. >If you declare a member function, the compiler does not generate it
  23. >for you. Thus, if you declare a pure virtual destructor, you usually
  24. >must implement it as well. 
  25.  
  26. Do you think it would be a good idea if the standard allowed 
  27. something like:
  28.  
  29. class X { virtual ~X()=0 {} } // Combined pure virtual + definition 
  30. -- 
  31. ***** Listen Americans, the IRS is your taxer,  the IRS is one. *****
  32. David Sachs - Fermilab, HPPC MS369 - P. O. Box 500 - Batavia, IL 60510
  33. Voice: 1 708 840 3942      Deparment Fax: 1 708 840 3785
  34. ---
  35. [ To submit articles: try just posting with your news-reader.
  36.                       If that fails, use mailto:std-c++@ncar.ucar.edu
  37.   FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
  38.   Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  39.   Comments? mailto:std-c++-request@ncar.ucar.edu.
  40. ]
  41.